package com.bbs.service;

import com.bbs.domain.ResultInfo;
import com.bbs.entity.Post;
import com.bbs.entity.Reply;
import com.bbs.entity.User;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {
    public User findById(int id);

    public List<User> listUserByHot();

    public List<User> listUserByTime();

    int register(User user);


    ResultInfo doLogin(String email, String password, HttpSession session);

    User activatUser(String email, String activateCode);

    int updateUserPostCount(Reply reply);

    int updateUserLikeCount(Integer uid);

    int updateUserLikeCount2(Integer uid);

    //查询个人信息
    User selectUser(int uid);

    //更新个人信息
    void updateUser(User user);

    //登录后查找user信息
    User loginSelectUser(String email);

    //编辑个人信息页面
    User xinxiuser(int uid);
}
